﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Clients_BookTicket_2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string getseatuse = Request.QueryString["seatused"];
        txtseatused.Value = getseatuse;
       
        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "AddSelect", " addselect(1);", true);
        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "AddAge", " addage(1);", true);
        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "removeitem", " removeitem('" + getseatuse + "',1);", true);


    }
    protected void btncontinute_Click(object sender, EventArgs e)
    {
        string s = txtallelement.Value;
        string[] words = s.Split(',');
        foreach (string word in words)
        {
            ScriptManager.RegisterStartupScript(Page, Page.GetType(), "Show", " alerterror('" + word + "');", true);
        }
    }
}